.ml_body {
  display: flex;
  width: 100%;
  /* 使整个容器宽度为 100% */
}

.ml_body_screen {
  background-color: #000;
  width: 80%;
  height: 100%;
  min-width: 500px;
  aspect-ratio: 1;
  /* flex-grow: 1;   */
}

.ml_handle {
  width: calc(20% - 10px - 10px);
  min-width: 200px;
  padding: 0 10px;
  /* background-color: yellow; */
  display: flex;
  flex-direction: column;
}

#ml_handle_top {
  /* background-color: green; */
  width: 100%;

}

.ml_box {
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 10px;
  /* background-color: red; */
  /* width: /100%; */
}

legend {
  padding: 0 10px;
}

.ml_ch_list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 5px 0;
}

.ml_ch_list label {
  font-size: clamp(8px, 1vw, 16px);
  min-height: 0;
  min-width: 0;
  display: flex;
  /* 使用 flexbox */
  align-items: center;
  /* 垂直居中 */
  /* justify-content: center; */
  /* 水平居中 */
  text-align: center;
}

.ml_us {
  display: flex;
  width: 100%;
  gap: 10px;
}

.ml_us_range {
  /* width: calc(100% - 30px); */
  flex-grow: 1;
}

.ml_us_input {
  max-width: 50px;
  min-width: 30px;
  width: 20%;
  aspect-ratio: 1;
  font-size: clamp(8px, 1vw, 15px);
}

.ml_change_us {
  display: flex;
  gap: 10px;
}

.ml_change_us_title {
  border: 1px solid #d3d3d3;
  font-size: clamp(8px, 1vw, 16px);
  padding: 0 3px;
  width: 30%;
  max-width: 100px;
  min-width: 40px;
}

.ml_change_us_input {
  flex-grow: 1;
}

.ml_change_us_input_number {
  width: 100%;
  height: 100%;
}

.ml_change_us_select {
  width: 30%;
  min-width: 46px;
}

#ml_us_select {
  width: 100%;
  height: 100%;
}

.ml_direction_list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding-top: 5px;
}

.ml_direction_list label {
  font-size: clamp(8px, 1vw, 16px);
  min-height: 0;
  min-width: 0;
  display: flex;
  /* 使用 flexbox */
  align-items: center;
  /* 垂直居中 */
  /* justify-content: center; */
  /* 水平居中 */
  text-align: center;
}

.ml_chancel_container {
  overflow: auto;
}

.ml_chancel_item {
  margin-bottom: 10px;
  border: 1px solid #000;
  display: flex;
}

.ml_chancel_item_left {
  width: 60%;
  display: flex;
  /* background-color: green; */
  flex-direction: column;
  align-items: center;
}


.ml_chancel_item_left_top {
  width: 100%;
  height: 30px;
  display: inline-flex;
  gap: 10px;
}

.ml_input_range {
  flex-grow: 1;
  width: calc(100% - 20px);
  display: flex;
}

.ml_input_range input[type="range"] {
  width: 100%;
  align-items: center;
}

.ml_chancel_item_index {
  display: flex;
  width: 50px;
  height: 30px;
  font-size: 12px;
  text-align: center;
  align-items: center;
  justify-content: center;
  margin-right: 5px;
}

.ml_chancel_item_left_title {
  width: calc(100% - 30px);
  height: 30px;
  font-weight: bold;
  display: flex;
  text-align: left;
  align-items: center;
  white-space: nowrap;
}

.ml_chancel_item_right {
  padding: 0 5px;
  width: 40%;
  background-color: transparent;
}

.ml_chancel_item_right_input {
  width: 100%;
  display: block;
  margin: 5px 0;
}

.ml_chancel_item_right_color {
  padding-top: 5px;
  display: flex;
  flex-direction: row;
}

/* .ml_chancel_item_right_color label {
  display: flex;
  flex-direction: row;
  background-color: #96cde8;
} */

.ml_chancel_item_right_color button {
  width: 60%;
  text-align: center;
  padding: 2px 2px;
  font-size: clamp(8px, 1vw, 16px);
}

.ml_chancel_item_right_color select {
  width: 40%;
}

input[type="color"] {
  display: none;
  text-align: center;
}

/* 
.ml_chancel_item:nth-child(1) .ml_chancel_item_index {
  background-color: #fffd54;
}

.ml_chancel_item:nth-child(2) .ml_chancel_item_index {
  background-color: #96cde8;
}

.ml_chancel_item:nth-child(3) .ml_chancel_item_index {
  background-color: #f6c3cb;
}

.ml_chancel_item:nth-child(4) .ml_chancel_item_index {
  background-color: #a6eb9a;
} */
dialog {
  width: 300px;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.5);
}

/* .canvas-container {
  position: relative;
  width: 100%;
  height: 100vh;
} */
.canvas-container canvas {
  position: absolute;
}
canvas {
  display: block;
  /* background-color: rebeccapurple */
}

.my_channel_list {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  /* background-color: aqua; */
  display: flex;
  justify-content: left;
  align-items: center;
  gap: 10px;
  /* 按钮间距 */
}

.channel-button {
  border: none;
  border-radius: 2px;
  /* cursor: pointer; */
}

.channel-button:hover {
  border: none;
  border-radius: 2px;
  /* cursor: pointer; */
}